import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useUser = defineStore(
  'user',
  () => {
    const token = ref('')
    const gettoken = (t) => {
      token.value = t
    }
    const nulltoken = () => {
      token.value = ''
    }
    return { token, gettoken, nulltoken }
  },
  { persist: true }
)
